﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace 校园教室管理系统
{
    /// <summary>
    /// teacherLogin.xaml 的交互逻辑
    /// </summary>
    public partial class teacherLogin : Window
    {
        public teacherLogin()
        {
            InitializeComponent();
        }

        private void teacherLogin_BackButton_Click(object sender, RoutedEventArgs e)
        {
            MainWindow mw = new MainWindow();
            mw.Show();
            this.Close();
        }

        private void teacherLogin_LoginButton_Click(object sender, RoutedEventArgs e)
        {
            string acc = teacherLogin_AccountTB.Text;
            string pas = teacherLogin_PW.Password.ToString();
            if (acc != "" && pas != "")
            {
                MessageBox.Show("通过");
            }
            else
            {
                MessageBox.Show("账号或密码不能为空!", "警告", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
    }
}
